<!DOCTYPE html><html>

<head>
<meta charset="utf-8">
<title></title>
<style>
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}
html{line-height:1}
ol,ul{list-style:none}
table{border-collapse:collapse;border-spacing:0;
  margin-top: 0;
  margin-bottom: 0.8em;
}
caption,th,td{text-align:left;font-weight:normal;vertical-align:middle}
q,blockquote{quotes:none}
q:before,q:after,blockquote:before,blockquote:after{content:"";content:none}
a img{border:none}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary{display:block}
a{color:#1863a1}
a:visited{color:#751590}
a:focus{color:#0181eb}
a:hover{color:#0181eb}
a:active{color:#01579f}
aside.sidebar a{color:#222}
aside.sidebar a:focus{color:#0181eb}
aside.sidebar a:hover{color:#0181eb}
aside.sidebar a:active{color:#01579f}
a{-webkit-transition:color 0.3s;-moz-transition:color 0.3s;-o-transition:color 0.3s;transition:color 0.3s}

body,h1,h2,h3,h4,h5,h6,footer{font-family:"PT Sans","Helvetica Neue","Optima","Hiragino Sans GB",sans-serif}
body{line-height:1.5em;color:#222
	-webkit-text-size-adjust:none;  min-width: 200px;
  max-width: 760px;
  margin: 0 auto; padding: 1em;}

pre,code,tt,p code,li code{font-family:Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace}

h1{font-size:2.2em;line-height:1.2em}

h1,h2,h3,h4,h5,h6{text-rendering:optimizelegibility;margin-bottom:1em;font-weight:bold}
h2,section h1{font-size:1.5em}
h3,section h2,section section h1{font-size:1.3em}
h4,section h3,section section h2,section section section h1{font-size:1em}
h5,section h4,section section h3{font-size:.9em}
h6,section h5,section section h4,section section section h3{font-size:.8em}
.markdown-body{padding: 0px 4px;}
.markdown-body h1{position:relative;padding-top:1em;padding-bottom:0.2em;margin-bottom:1em;background:url('') bottom left repeat-x}
.markdown-body  h1 a{text-decoration:none}
.markdown-body  h1 a:hover{text-decoration:underline}

.markdown-body h2{padding-top:0.8em;padding-bottom:0.2em;background:url('') bottom left repeat-x}
.markdown-body h2:first-child,.markdown-body header+h2{padding-top:0}
.markdown-body h2:first-child,.markdown-body header+h2{background:none}



p,.markdown-body blockquote,ul,ol{margin-bottom:0.8em; margin-top:0.8em;}
ul{list-style-type:disc}
ul ul{list-style-type:circle;margin-bottom:0px}
ul ul ul{list-style-type:square;margin-bottom:0px}
ol{list-style-type:decimal}
ol ol{list-style-type:lower-alpha;margin-bottom:0px}
ol ol ol{list-style-type:lower-roman;margin-bottom:0px}
ul,ul ul,ul ol,ol,ol ul,ol ol{margin-left:1.3em}
ul ul,ul ol,ol ul,ol ol{margin-bottom:0em}
strong{font-weight:bold}
em{font-style:italic}
sup,sub{font-size:0.75em;position:relative;display:inline-block;padding:0 .2em;line-height:.8em}
sup{top:-.5em}
sub{bottom:-.5em}
a[rev='footnote']{font-size:.75em;padding:0 .3em;line-height:1}
q{font-style:italic}
q:before{content:"\201C"}
q:after{content:"\201D"}
em,dfn{font-style:italic}
strong,dfn{font-weight:bold}
del,s{text-decoration:line-through}
abbr,acronym{border-bottom:1px dotted;cursor:help}
small{font-size:.8em}
big{font-size:1.2em}

.markdown-body hr {
  height: 0;
  margin: 15px 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ddd;
}

.markdown-body hr:before {
  display: table;
  content: "";
}

.markdown-body hr:after {
  display: table;
  clear: both;
  content: "";
}


.markdown-body table {
  display: block;
  width: 100%;
  overflow: auto;
  word-break: normal;
  word-break: keep-all;
}

.markdown-body table th {
  font-weight: bold;
}

.markdown-body table th,
.markdown-body table td {
  padding: 6px 13px;
  border: 1px solid #ddd;
}

.markdown-body table tr {
  background-color: #fff;
  border-top: 1px solid #ccc;
}

.markdown-body table tr:nth-child(2n) {
  background-color: #f8f8f8;
}

.markdown-body blockquote{font-style:italic;position:relative;font-size:1.2em;line-height:1.5em;padding-left:1em;border-left:4px solid rgba(170,170,170,0.5)}
.markdown-body blockquote cite{font-style:italic}
.markdown-body blockquote cite a{color:#aaa !important;word-wrap:break-word}
.markdown-body blockquote cite:before{content:'\2014';padding-right:.3em;padding-left:.3em;color:#aaa}

.markdown-body a{white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word}

body>header{font-size:1em;padding-top:1.5em;padding-bottom:1.5em}
.markdown-body{overflow:hidden}
.markdown-body>div,.markdown-body>article{width:100%}
aside.sidebar{float:none;padding:0 18px 1px;background-color:#f7f7f7;border-top:1px solid #e0e0e0}
.flex-content,article img,article video,article .flash-video,aside.sidebar img{max-width:100%;height:auto}
.basic-alignment.left,article img.left,article video.left,article .left.flash-video,aside.sidebar img.left{float:left;margin-right:1.5em}
.basic-alignment.right,article img.right,article video.right,article .right.flash-video,aside.sidebar img.right{float:right;margin-left:1.5em}
.basic-alignment.center,article img.center,article video.center,article .center.flash-video,aside.sidebar img.center{display:block;margin:0 auto 1.5em}
.basic-alignment.left,article img.left,article video.left,article .left.flash-video,aside.sidebar img.left,.basic-alignment.right,article img.right,article video.right,article .right.flash-video,aside.sidebar img.right{margin-bottom:.8em}
.toggle-sidebar,.no-sidebar .toggle-sidebar{display:none}


.markdown-body img,.markdown-body video,.markdown-body .flash-video{ -webkit-border-radius:0.3em;-moz-border-radius:0.3em;-ms-border-radius:0.3em;-o-border-radius:0.3em;border-radius:0.3em;-webkit-box-shadow:rgba(0,0,0,0.15) 0 1px 4px;-moz-box-shadow:rgba(0,0,0,0.15) 0 1px 4px;box-shadow:rgba(0,0,0,0.15) 0 1px 4px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:#fff 0.5em solid;}

.markdown-body img,.markdown-body video{max-width: 100%;}
.markdown-body video,.markdown-body .flash-video{margin:0 auto 1.5em}
.markdown-body video{display:block;width:100%}
.markdown-body .flash-video>div{position:relative;display:block;padding-bottom:56.25%;padding-top:1px;height:0;overflow:hidden}
.markdown-body .flash-video>div iframe,.markdown-body .flash-video>div object,.markdown-body .flash-video>div embed{position:absolute;top:0;left:0;width:100%;height:100%}
.markdown-body>footer{padding-bottom:2.5em;margin-top:2em}
.markdown-body>footer p.meta{margin-bottom:.8em;font-size:.85em;clear:both;overflow:hidden}


body,pre{ background:#fdf6e3 url('') top left;}
body{ background-color: #f8f8f8;}
pre{-webkit-border-radius:0.4em;-moz-border-radius:0.4em;-ms-border-radius:0.4em;-o-border-radius:0.4em;border-radius:0.4em;border:1px solid #e7dec3;line-height:1.45em;font-size:13px;margin-bottom:2.1em;padding:.8em 1em;color:#586e75;overflow:auto}
.markdown-body code{background: none;}
h3.filename+pre{-moz-border-radius-topleft:0px;-webkit-border-top-left-radius:0px;border-top-left-radius:0px;-moz-border-radius-topright:0px;-webkit-border-top-right-radius:0px;border-top-right-radius:0px}
p code,li code{display:inline-block;white-space:no-wrap;background:#fff;font-size:.8em;line-height:1.5em;color:#555;border:1px solid #ddd;-webkit-border-radius:0.4em;-moz-border-radius:0.4em;-ms-border-radius:0.4em;-o-border-radius:0.4em;border-radius:0.4em;padding:0 .3em;margin:-1px 0}
p pre code,li pre code{font-size:1em !important;background:none;border:none}

/*

Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>

*/

.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  background: #fdf6e3;
  color: #657b83;
  -webkit-text-size-adjust: none;
}

.hljs-comment,
.diff .hljs-header,
.hljs-doctype,
.hljs-pi,
.lisp .hljs-string {
  color: #93a1a1;
}

/* Solarized Green */
.hljs-keyword,
.hljs-winutils,
.method,
.hljs-addition,
.css .hljs-tag,
.hljs-request,
.hljs-status,
.nginx .hljs-title {
  color: #859900;
}

/* Solarized Cyan */
.hljs-number,
.hljs-command,
.hljs-string,
.hljs-tag .hljs-value,
.hljs-rule .hljs-value,
.hljs-doctag,
.tex .hljs-formula,
.hljs-regexp,
.hljs-hexcolor,
.hljs-link_url {
  color: #2aa198;
}

/* Solarized Blue */
.hljs-title,
.hljs-localvars,
.hljs-chunk,
.hljs-decorator,
.hljs-built_in,
.hljs-identifier,
.vhdl .hljs-literal,
.hljs-id,
.css .hljs-function,
.hljs-name {
  color: #268bd2;
}

/* Solarized Yellow */
.hljs-attribute,
.hljs-variable,
.lisp .hljs-body,
.smalltalk .hljs-number,
.hljs-constant,
.hljs-class .hljs-title,
.hljs-parent,
.hljs-type,
.hljs-link_reference {
  color: #b58900;
}

/* Solarized Orange */
.hljs-preprocessor,
.hljs-preprocessor .hljs-keyword,
.hljs-pragma,
.hljs-shebang,
.hljs-symbol,
.hljs-symbol .hljs-string,
.diff .hljs-change,
.hljs-special,
.hljs-attr_selector,
.hljs-subst,
.hljs-cdata,
.css .hljs-pseudo,
.hljs-header {
  color: #cb4b16;
}

/* Solarized Red */
.hljs-deletion,
.hljs-important {
  color: #dc322f;
}

/* Solarized Violet */
.hljs-link_label {
  color: #6c71c4;
}

.tex .hljs-formula {
  background: #eee8d5;
}


</style>

<style> @media print{ .hljs{overflow: visible; word-wrap: break-word !important;} }</style></head><body><div class="markdown-body">
<p>iOS组件配合使用说明</p>

<ul>
<li>
<a href="#toc_0">推拉流基础版组件集成说明</a>
<ul>
<li>
<a href="#toc_1">1.概述</a>
<ul>
<li>
<a href="#toc_2">1.1 功能特性</a>
<ul>
<li>
<a href="#toc_3">1.1.1 基础版SDK功能</a>
</li>
<li>
<a href="#toc_4">1.1.2 白板插件功能</a>
</li>
<li>
<a href="#toc_5">1.1.3 聊天插件功能</a>
</li>
<li>
<a href="#toc_6">1.1.3 排麦插件功能</a>
</li>
</ul>
</li>
<li>
<a href="#toc_7">1.2 阅读对象</a>
</li>
</ul>
</li>
<li>
<a href="#toc_8">2.开发准备</a>
<ul>
<li>
<a href="#toc_9">2.1 开发环境</a>
</li>
<li>
<a href="#toc_10">2.2 Xcode配置</a>
</li>
</ul>
</li>
<li>
<a href="#toc_11">3.快速集成</a>
<ul>
<li>
<a href="#toc_12">3.1 导入framework</a>
</li>
<li>
<a href="#toc_13">3.2 framework添加Embedded Binaries</a>
</li>
<li>
<a href="#toc_14">3.3 配置依赖库</a>
</li>
<li>
<a href="#toc_15">3.4 组件使用</a>
<ul>
<li>
<a href="#toc_16">3.4.1 基础版SDK实例化</a>
</li>
<li>
<a href="#toc_17">3.4.2 文档组件实例化</a>
</li>
<li>
<a href="#toc_18">3.4.3 聊天组件实例化</a>
</li>
<li>
<a href="#toc_19">3.4.4 排麦组件实例化</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#toc_20">4 组件与基础版SDK建立关联</a>
</li>
<li>
<a href="#toc_21">5.API查询</a>
</li>
<li>
<a href="#toc_22">6.Q&amp;A</a>
<ul>
<li>
<a href="#toc_23">6.1 运行崩溃</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>


<h1 id="toc_0">推拉流基础版组件集成说明</h1>

<h2 id="toc_1">1.概述</h2>

<p>CC基础版SDK 是一个适用于iOS平台的云课堂SDK，使用此SDK可以与CC视频云服务进行对接，在iOS端使用CC视频的云课堂功能。</p>

<h3 id="toc_2">1.1 功能特性</h3>

<p>ios端SDK目前支持了基础版SDK、白板插件、聊天插件以及排麦插件；</p>

<h4 id="toc_3">1.1.1 基础版SDK功能</h4>

<table>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
</thead>

<tbody>
<tr>
<td>功能特性</td>
<td>描述</td>
<td>备注</td>
</tr>
<tr>
<td>推流</td>
<td>支持推流到服务器</td>
<td></td>
</tr>
<tr>
<td>拉流</td>
<td>支持从服务器订阅流</td>
<td></td>
</tr>
<tr>
<td>获取流状态</td>
<td>支持获取流的状态(发报数、收报数、丢包数、延时)</td>
<td></td>
</tr>
<tr>
<td>前后摄像头切换</td>
<td>支持手机前后摄像头切换</td>
<td></td>
</tr>
<tr>
<td>后台播放</td>
<td>支持直播退到后台只播放音频</td>
<td></td>
</tr>
<tr>
<td>支持https协议</td>
<td>支持接口https请求</td>
<td></td>
</tr>
</tbody>
</table>

<h4 id="toc_4">1.1.2 白板插件功能</h4>

<p>用于展示老师端的操作；</p>

<h4 id="toc_5">1.1.3 聊天插件功能</h4>

<table>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
</thead>

<tbody>
<tr>
<td>功能特性</td>
<td>描述</td>
<td>备注</td>
</tr>
<tr>
<td>文本、表情发送</td>
<td>支持接收服务端的文本和表情数据</td>
<td></td>
</tr>
<tr>
<td>图片发送</td>
<td>支持接收服务器的图片数据</td>
<td></td>
</tr>
<tr>
<td>禁言</td>
<td>分为指定用户的禁言，以及全体禁言</td>
<td></td>
</tr>
</tbody>
</table>

<h4 id="toc_6">1.1.3 排麦插件功能</h4>

<table>
<thead>
<tr>
<th></th>
<th></th>
<th></th>
</tr>
</thead>

<tbody>
<tr>
<td>功能特性</td>
<td>描述</td>
<td>备注</td>
</tr>
<tr>
<td>自由连麦</td>
<td>互动者可自由连麦,无需老师确认</td>
<td></td>
</tr>
<tr>
<td>自动连麦</td>
<td>互动者进入房间后自动连麦</td>
<td></td>
</tr>
<tr>
<td>举手连麦</td>
<td>互动者可举手申请连麦,需老师确认才可连麦</td>
<td></td>
</tr>
</tbody>
</table>

<h3 id="toc_7">1.2 阅读对象</h3>

<p>本文档为技术文档，需要阅读者：</p>

<ol>
<li>具备基本的iOS开发能力</li>
<li>准备接入CC视频的云课堂SDK相关功能</li>
</ol>

<h2 id="toc_8">2.开发准备</h2>

<h3 id="toc_9">2.1 开发环境</h3>

<ol>
<li>Xcode : iOS 开发IDE</li>
<li>支持的CPU架构有armv7,arm64</li>
<li>支持的最低系统版本iOS9</li>
<li>模拟器支持：ipad air及以上版本，iphone 5s及以上版本模拟器；</li>
<li>开发所需相关账号请咨询CC视频客户人员提供；</li>
</ol>

<h3 id="toc_10">2.2 Xcode配置</h3>

<pre><code>1. Build Settings   -&gt;    Build Options  -&gt;   Enable Bitcode   -&gt;       NO
</code></pre>

<pre><code>2. Build Settings -&gt; Always Enbed Swift Standar Libraries -&gt;YES
</code></pre>

<pre><code>3. 工程加入云课堂SDK相关动态库
</code></pre>

<pre><code>4. 添加需要的系统库:VideoToolbox.framework、libstdc++.tbd、libicucore.tbd
</code></pre>

<pre><code>5. General-&gt;Embedded Binaries中添加云课堂SDK相关动态库
</code></pre>

<pre><code>6. Build Settings   -&gt;   Other Linker Flags 添加-ObjC
</code></pre>

<pre><code>7. Capabilities -&gt; Background Modes -&gt; Audio，AirPlay，And Picture in Picture
</code></pre>

<pre><code>8. Info.plist 增加Privacy - Microphone Usage Description、Privacy - Photo Library Usage Description、Privacy - Camera Usage Description
</code></pre>

<h2 id="toc_11">3.快速集成</h2>

<p>注：快速集成主要提供的是推流和拉流的功能(核心功能)。白板、聊天以及排麦组件另有开发文档描述。</p>

<p>首先，下载最新版本的组件化基础版SDK: <a href="https://doc.bokecc.com/class/developer/ios/documents/demo.html">云课堂iOS组件化SDK下载</a><br/>
下载WebRTC库   <font color=#0099ff size=4 face="黑体">参考发布包内SDK文件夹内提供的下载地址</font>集成；</p>

<h3 id="toc_12">3.1 导入framework</h3>

<table>
<thead>
<tr>
<th style="text-align: left">名称</th>
<th style="text-align: left">描述</th>
</tr>
</thead>

<tbody>
<tr>
<td style="text-align: left">CCClassRoomBasic.framework</td>
<td style="text-align: left">云课堂音视频核心SDK</td>
</tr>
<tr>
<td style="text-align: left">CCDocLibrary.framework</td>
<td style="text-align: left">云课堂白板插件核心SDK</td>
</tr>
<tr>
<td style="text-align: left">CCChatLibrary.framework</td>
<td style="text-align: left">云课堂聊天插件核心SDK</td>
</tr>
<tr>
<td style="text-align: left">CCBarleyLibrary.framework</td>
<td style="text-align: left">云课堂排麦插件核心SDK</td>
</tr>
<tr>
<td style="text-align: left">MQTTClient.framework</td>
<td style="text-align: left">云课堂排麦插件核心SDK</td>
</tr>
<tr>
<td style="text-align: left">SocketRocket.framework</td>
<td style="text-align: left">云课堂排麦插件核心SDK</td>
</tr>
<tr>
<td style="text-align: left">ZegoLiveRoom.framework</td>
<td style="text-align: left">云课堂业务SDK</td>
</tr>
<tr>
<td style="text-align: left">WebRTC.framework</td>
<td style="text-align: left">云课堂业务核心SDK</td>
</tr>
<tr>
<td style="text-align: left">HDSSup.framework</td>
<td style="text-align: left">云课堂业务SDK &lt;可选&gt;</td>
</tr>
</tbody>
</table>

<h3 id="toc_13">3.2 framework添加Embedded Binaries</h3>

<p>由于framework是动态库需要将<br/>
CCClassRoomBasic.framework、<br/>
CCDocLibrary.framework  、<br/>
CCChatLibrary.framework、<br/>
CCBarleyLibrary.framework、<br/>
WebRTC.framework、<br/>
MQTTClient.framework、<br/>
SocketRocket.framework、<br/>
ZegoLiveRoom.framework、<br/>
HDSSup.framework &lt;可选&gt; <br/>
添加到Embedded Binaries；</p>

<h3 id="toc_14">3.3 配置依赖库</h3>

<p>工程需要下列系统库:libz.thd、libstdc++.thd、libicucore.thd、VideoToolBox.framework</p>

<h3 id="toc_15">3.4 组件使用</h3>

<p>组件使用是基于基础版SDK的；</p>

<h4 id="toc_16">3.4.1 基础版SDK实例化</h4>

<p>在需要使用SDK的文件引入头文件</p>

<pre><code class="language-objc">import &lt;CCClassRoomBasic/CCClassRoomBasic.h&gt;
在@interface 添加CCStreamerBasic、CCRoom实例属性，方便后续调用；
@property(nonatomic,strong)CCRoom   *room;
@property(nonatomic,strong)CCStreamerBasic *streamer;

</code></pre>

<p>创建SDK实例：</p>

<pre><code class="language-objc">- (CCStreamerBasic *)streamer
{
    if (!_streamer) {
        _streamer = [CCStreamerBasic sharedStreamer];
    }
    return _streamer;
}
- (CCRoom *)room
{
    return [self.streamer getRoomInfo];
}
</code></pre>

<h4 id="toc_17">3.4.2 文档组件实例化</h4>

<p>在需要使用文档组件的文件引入头文件</p>

<pre><code class="language-objc">#import &lt;CCDocLibrary/CCDocLibrary.h&gt;
在@interface CCDocVideoView 实例属性方便后续调用；
@property(nonatomic,strong)CCDocVideoView   *ccVideoView;

</code></pre>

<p>创建SDK实例：</p>

<pre><code class="language-objc">- (CCDocVideoView *)ccVideoView
{
    if (!_ccVideoView) {
        CGRect frame = CGRectMake(0, 0, 200, 100);
        _ccVideoView = [[CCDocVideoView alloc]initWithFrame:frame];
        [_ccVideoView addObserverNotify];
    }
    return _ccVideoView;
}
</code></pre>

<h4 id="toc_18">3.4.3 聊天组件实例化</h4>

<p>在需要使用文档组件的文件引入头文件</p>

<pre><code class="language-objc">#import &lt;CCChatLibrary/CCChatLibrary.h&gt;
在@interface CCChatManager实例属性方便后续调用；
@property(nonatomic,strong)CCChatManager    *ccChatManager;

</code></pre>

<p>创建SDK实例：</p>

<pre><code class="language-objc">- (CCChatManager *)ccChatManager
{
    if (!_ccChatManager) {
        _ccChatManager = [CCChatManager sharedChat];
    }
    return _ccChatManager;
}
</code></pre>

<h4 id="toc_19">3.4.4 排麦组件实例化</h4>

<p>在需要使用文档组件的文件引入头文件</p>

<pre><code class="language-objc">#import &lt;CCBarleyLibrary/CCBarleyLibrary.h&gt;
在@interface CCBarleyManager实例属性方便后续调用；
@property(nonatomic,strong)CCBarleyManager  *ccBarelyManager;

</code></pre>

<p>创建SDK实例：</p>

<pre><code class="language-objc">- (CCBarleyManager *)ccBarelyManager
{
    if (!_ccBarelyManager) {
        _ccBarelyManager = [CCBarleyManager sharedBarley];
    }
    return _ccBarelyManager;
}
</code></pre>

<h2 id="toc_20">4 组件与基础版SDK建立关联</h2>

<p>要使用文档、聊天、排麦组件需要配合基础版SDK使用，要建立关联，如下：</p>

<pre><code class="language-objc">- (void)initBaseSDKComponent
{
    self.streamer = [CCStreamerBasic sharedStreamer];
    [self.streamer addObserver:self];
    
    //白板
    [self.streamer addObserver:self.ccVideoView];
    [self.ccVideoView addBasicClient:self.streamer];
    //聊天
    [self.streamer addObserver:self.ccChatManager];
    [self.ccChatManager addBasicClient:self.streamer];
    //排麦
    self.streamer.isUsePaiMai = YES;
    [self.streamer addObserver:self.ccBarelyManager];
    [self.ccBarelyManager addBasicClient:self.streamer];
}
</code></pre>

<h2 id="toc_21">5.API查询</h2>

<p>Document目录打开index.html文件</p>

<h2 id="toc_22">6.Q&amp;A</h2>

<h3 id="toc_23">6.1 运行崩溃</h3>

<pre><code class="language-objc">dyld: Library not loaded: @rpath/CCClassRoomBasic.framework/CCClassRoomBasic
  Referenced from: /var/containers/Bundle/Application/E8CDE526-6F19-415B-9BA4-2380AB0A1FDE/CCClassRoom.app/CCClassRoom
  Reason: image not found
</code></pre>

<p>解决办法参考3.2</p>

<br><br><br><br>

</div></body>

</html>
